class Book:
    def __init__(self, title, author, publish_date):
        self.title = title
        self.author = author
        self.publish_date = publish_date

    def __str__(self):
        return f"{self.title} by {self.author} ({self.publish_date})"

    def get_book_title(self):
        return self.title

    def get_book_author(self):
        return self.author

    def get_book_publish_date(self):
        return self.publish_date
class Library:
    def __init__(self):
        self.books = []
    
    def add_book(self, book):
        self.books.append(book)
    
    def borrow_book(self, book_title):
        for book in self.books:
            if book.get_book_title() == book_title:
                self.books.remove(book)
                return book
    def show_books(self):
        for book in self.books:
            print(book)
    def return_book(self, book):

        self.books.append(book)
if __name__ == "__main__":
    library = Library()
    book1 = Book("西游记", "吴承恩", "1600")
    book2 = Book("三体", "刘慈欣", "2010")
    library.add_book(book1)
    library.add_book(book2)
    library.show_books()
    borrowed_book = library.borrow_book("三体")
    print(f"Borrowed book: {borrowed_book}")
    library.show_books()
    library.return_book(borrowed_book)
    print("归还书籍：", borrowed_book.get_title())
    library.show_books()